<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/head :: head"></head>
<body>

<div th:replace="common/header :: header"></div>

<div class="layui-container fly-marginTop fly-user-main">

  <div th:replace="common/user-nav :: user-nav"></div>

  <div class="fly-panel fly-panel-user" pad20>
    <div class="layui-tab layui-tab-brief" lay-filter="user">
      <ul class="layui-tab-title">
        <li class="layui-this">
          激活邮箱
        </li>
      </ul>
      <div class="layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
        <ul class="layui-form">
          <li class="layui-form-li">
            <label for="activate">您的邮箱：</label>
            <span class="layui-form-text">[[ ${#authentication.principal?.user?.userEmail} ]]
               <em style="color:#999;" th:if="${#authentication.principal.userIfverified == 0}">（已验证）</em>
               <em style="color:#c00;" th:if="${#authentication.principal.userIfverified == 1}">（未验证）</em>
            </span>
          </li>
          <li class="layui-form-li" style="margin-top: 20px; line-height: 26px;">
            <div>
              1. 如果您未收到邮件，或激活链接失效，您可以
              <a class="layui-form-a" style="color:#4f99cf;" id="LAY-activate" href="javascript:;" th:attr="email=${#authentication.principal?.user?.userEmail}" >重新发送邮件</a>，或者
              <a class="layui-form-a" style="color:#4f99cf;" th:href="@{/user/set}">更换邮箱</a>；
            </div>
            <div>
              2. 如果您始终没有收到 chengliangyun 发送的邮件，请注意查看您邮箱中的垃圾邮件；
            </div>
            <div>
              3. 如果你实在无法激活邮件，您还可以联系：chengliangyun@qq.com
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
  
</div>

<div th:replace="common/footer :: footer"></div>
<script th:replace="common/common-js :: js"></script>
<script>
layui.config({
  base: '/res/mods/'
}).extend({
  fly: 'index'
}).use(['fly','user']);
</script>

</body>
</html>